<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<script src="js/jquery.js"></script>
<form id="ceshi">
帐号<input type="text" name="name"></br>
密码<input type="password" name="password"></br>
<input type="button" value="提交" class="cb">
</form>
</body>
<script>
$(".cb").click(function(){
	$.ajax({
		url:"http://127.0.0.1:8080/ceshi22/ceshi",
		data:$("#ceshi").serialize(),
		dataType:'json',
		type:'POST',
		success:function(data){
			console.log(data);
		}
	});
});
</script>
</html>